package com.common.service.departmentjob;

import com.common.entity.department.DepartmentEntity;
import com.common.global.BizException;
import com.common.query.ConditionService;
import com.common.requestvo.departmentjob.DepartmentReqVo;
import com.common.vo.departmentjob.DepartmentVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author johnny
 * @create 2021-05-14 8:57 下午
 **/
public interface DepartmentService extends ConditionService<DepartmentEntity> {
    /**
     * 分页查询接口
     *
     * @param departmentReqVo : departmentReqVo
     * @param pageVo          : pageVo
     * @return : Page<JudicialPersonalVo>
     */
    Page<DepartmentVo> listByCondition(DepartmentReqVo departmentReqVo, Pageable pageVo);


    void add(DepartmentReqVo departmentReqVo);

    void edit(DepartmentReqVo departmentReqVo);

    void delete(Long id);

    DepartmentVo checkDepartmentExist(Long departmentId) throws BizException;

    List<DepartmentVo> findAllDepartment();

}